/**
 * @author LKQ
 * @date 2021/12/28 10:32
 * @description
 */
public class Solution2 {
    public static void main(String[] args) {

    }

    public void moveZeroes(int[] nums ) {
        int left = 0, right = 0, n = nums.length;
        while (right < n) {
            if (nums[right] != 0) {
                int temp = nums[right];
                nums[right] = nums[left];
                nums[left] = temp;
                left++;
            }
            right++;
        }
    }
}
